# Maintainer: Zach DeCook <zachdecook@librem.one>
pkgname=mpd-mpris
pkgver=0.3.1
pkgrel=0
pkgdesc="Implementation of the MPRIS protocol for MPD."
url="https://github.com/natsukagami/mpd-mpris"
arch="all"
license="MIT"
makedepends="go"
source="https://github.com/natsukagami/mpd-mpris/archive/v$pkgver/mpd-mpris-v$pkgver.tar.gz"
options="!check" # no tests

export GOFLAGS="$GOFLAGS -modcacherw -trimpath"

build() {
	go build ./cmd/mpd-mpris
}

package() {
	install -Dm755 mpd-mpris -t "$pkgdir"/usr/bin
}

sha512sums="
5b042e69abed15f05387ac99f3503af749041fdfc72f05c18c19be24050e1475f89e86db5900ea0384244ae2447ad1d17037f0496b799780c7d63fa8b23863d0  mpd-mpris-v0.3.1.tar.gz
"
